import http from './index'
/* 出库 */

// 获取订单列表
export function getOutOrderListApi ({ cardStatus, pageNo, pageSize, wmsStatus, orderNo, trackingNo }) {
  return http.post('/outOrder/all', { cardStatus, pageNo, pageSize, wmsStatus, orderNo, trackingNo })
}

// 待出仓拣货出仓
export function batchPickOutApi ({ cardStatus, cardId }) {
  return http.post('/outOrder/updatePickOrder', { cardStatus, cardId })
}


// 新增发货订单
export function addSendOrderApi ({ cardId, logisticsCompany, trackingNo }) {
  return http.post('/outOrder/updateSellOrder', { cardId, logisticsCompany, trackingNo })
}

// 查询拣货订单详情
export function queryPickDetailApi ({ cardId, cardStatus, id, orderOutNo, trackingNo }) {
  return http.post('/outOrder/queryWmsOutDetails', { cardId, cardStatus, id, orderOutNo, trackingNo })
}

// 确认拣货
export function confirmPickApi (cardId) {
  return http.post('/outOrder/updatePickConfirmOrder', { cardId })
}

// 新增拣货订单
export function addPickApi ({ cardId }) {
  return http.post('/outOrder/addPickOrder', { cardId })
}

// 获取订单数量
export function getOrderAmountApi () {
  return http.post('/outOrder/queryWmsOutCount' )
}
